package com.lzs.Service;

import java.util.List;
import java.util.Map;

import com.lzs.PO.Menu;
import com.lzs.PO.Page;
import com.lzs.PO.Role;
public interface RoleService {
//分页查询
public Page<Role> findRolePagelist(String keyword,Integer pageNum, Integer pageSize);

//public Page<Role> findRolePagelist(String keyword,Integer pageNum, Integer pageSize);

//public List<Role> selectRoleById(Map<String, Object> map);
//
//public List<Menu> selectMenuById(Map<String, Object> map);

//查询所有角色
public List<Role> findRoleList(String keyword);
//校验角色编号
public boolean checkrole(Integer roleid);
//添加角色
public void addRoleWithMenuids(Map<String, Object> map);

public void addRole(Role role);

public Role selectRoleMenuById(Integer roleid);

public void updateRole(Role role);

public void updateRoleMenu(Map<String, Object> map);

public void deleteRoleMenuById(Map<String, Object> map);

public void deleteRoleById(Map<String, Object> map);

public List<Role> findRoles();

}
